package org.shj.spark.core.secondsort

class SecondSortKey(val first: Int, val second: Int) extends Ordered[SecondSortKey] with Serializable{
  def compare(that: SecondSortKey): Int = {
    if(this.first != that.first){
      this.first - that.first
    }else{
      this.second - that.second
    }
  }
}